
public class AuthorityCalc {

    private static final int query=1;
    private static final int add=2;
    private static final int delete=4;
    private static final int update=8;
    private   String name="陈国祥";
    public AuthorityCalc(){
        System.out.println(name);
        System.out.println("AuthorityCalc");
    }
    
    static{
        System.out.println("static ");
    }
    
    @Override
    protected void finalize() throws Throwable {
        System.out.println("finalize");
        super.finalize();
    }
    
    public static void main(String[] args) {
       /* int user_a_authority=0;//用户A
        
        user_a_authority=15;
        System.out.print("用户A是否有【新增】权限：");
        System.out.println((user_a_authority&add)==add);
        
        
        user_a_authority=user_a_authority&(~add);
        System.out.print("用户A是否有【新增】权限：");
        System.out.println((user_a_authority&add)==add);
        
        user_a_authority=user_a_authority|update;
        System.out.println((user_a_authority&update)==update);
//        System.out.println(user_a_authority);
//        System.out.println(Integer.toBinaryString(user_a_authority));
        
        System.out.println((user_a_authority&update)==update);*/
        AuthorityCalc a = new AuthorityCalc();
        System.gc();
       
    }
}
